Home:ALL Converter>Cloudera user not alowed to manipulate hdfs system on hadoop

Cloudera user not alowed to manipulate hdfs system on hadoop

Ask Time:2016-04-21T18:27:44         Author:Mensch

Json Formatter

I am trying to create a folder in hdfs hadoop file system but it is not allowing me to create a folder using the user cloudera nor as root. What should I configure to make it to allow me to hier was my attempt:

[cloudera@quickstart ~]$ sudo hadoop fs -mkdir /solr/test_core
mkdir: Permission denied: user=root, access=WRITE, inode="/solr":solr:supergroup:drwxr-xr-x
[cloudera@quickstart ~]$ su
Password:
[root@quickstart cloudera]# hadoop fs -mkdir /solr/test_core
mkdir: Permission denied: user=root, access=WRITE,inode="/solr":solr:supergroup:drwxr-xr-x
[root@quickstart cloudera]#

Author:Mensch,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/36766807/cloudera-user-not-alowed-to-manipulate-hdfs-system-on-hadoop
Mensch :

Found the answer:\nYou should use these weird command.\n\n\n sudo -u hdfs hdfs dfs -mkdir /solr/test_core/\n",
2016-04-21T10:42:59
Prasad Khode :

Neither cloudera nor root users will have permissions to run any command on /solr\n\nto run any command you need to change into hdfs and then issue the commands like below:\n\nsu - hdfs\nhadoop fs -mkdir /solr/test_core/\nexit\n",
2016-04-22T09:29:37
yy